Skip to main content
Version: 8.4.10.2

FuturePrintProbability

V8 Message Definiton

METADATA

AttributeValue
Topic4255-probabilities
MLink TokenFutProbModel
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
fkey_atenum - AssetTypePRI'None'
fkey_tsenum - TickerSrcPRI'None'
fkey_tkVARCHAR(12)PRI''
fkey_yrSMALLINT UNSIGNEDPRI0
fkey_mnTINYINT UNSIGNEDPRI0
fkey_dyTINYINT UNSIGNEDPRI0
stateModelenum - StateModelPRI'None'
prtPriceDOUBLE0
prtSizeINT0
prtProbFLOAT0probability that this print will result in positive PnL
prtSideenum - BuySell'None'
bidPriceDOUBLE0nbbo bid price
askPriceDOUBLE0nbbo ask price
bidSizeINT0cumulative size bid price
askSizeINT0cumulative size ask price
avgBLink1mFLOAT0average buy link value trailing 10
maeBLink1mFLOAT0buy link value mean abs err trailing 1000
avgSLink1mFLOAT0average sell link value trailing 10
maeSLink1mFLOAT0sell link value mean abs err trailing 1000
avgBLink10mFLOAT0average buy link value trailing 100
maeBLink10mFLOAT0bid link value mean abs err trailing 1000
avgSLink10mFLOAT0average ask link value trailing 100
maeSLink10mFLOAT0ask link value mean abs err trailing 1000
bCounterINT0buy counter
sCounterINT0sell counter
prtTimestampBIGINT0feed timestamp from the packet
netTimestampBIGINT0inbound packet PTP timestamp from SR gateway switch from FuturePrint
smsTimestampBIGINT0state model server timestamp just before publish

PRIMARY KEY DEFINITION (Unique)

FieldSequence
fkey_tk1
fkey_yr2
fkey_mn3
fkey_dy4
fkey_at5
fkey_ts6
stateModel7

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgFuturePrintProbability` (
`fkey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`fkey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`fkey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`fkey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`fkey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`fkey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`stateModel` ENUM('None','M1','M2','M3','M4') NOT NULL DEFAULT 'None',
`prtPrice` DOUBLE NOT NULL DEFAULT 0,
`prtSize` INT NOT NULL DEFAULT 0,
`prtProb` FLOAT NOT NULL DEFAULT 0 COMMENT 'probability that this print will result in positive PnL',
`prtSide` ENUM('None','Buy','Sell') NOT NULL DEFAULT 'None',
`bidPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'nbbo bid price',
`askPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'nbbo ask price',
`bidSize` INT NOT NULL DEFAULT 0 COMMENT 'cumulative size @ bid price',
`askSize` INT NOT NULL DEFAULT 0 COMMENT 'cumulative size @ ask price',
`avgBLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average buy link value (trailing 10)',
`maeBLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'buy link value mean abs err (trailing 1000)',
`avgSLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average sell link value (trailing 10)',
`maeSLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'sell link value mean abs err (trailing 1000)',
`avgBLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average buy link value (trailing 100)',
`maeBLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'bid link value mean abs err (trailing 1000)',
`avgSLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average ask link value (trailing 100)',
`maeSLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'ask link value mean abs err (trailing 1000)',
`bCounter` INT NOT NULL DEFAULT 0 COMMENT 'buy counter',
`sCounter` INT NOT NULL DEFAULT 0 COMMENT 'sell counter',
`prtTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'feed timestamp from the packet',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'inbound packet PTP timestamp from SR gateway switch (from FuturePrint)',
`smsTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'state model server timestamp (just before publish)',
PRIMARY KEY USING HASH (`fkey_tk`,`fkey_yr`,`fkey_mn`,`fkey_dy`,`fkey_at`,`fkey_ts`,`stateModel`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`fkey_at`,
`fkey_ts`,
`fkey_tk`,
`fkey_yr`,
`fkey_mn`,
`fkey_dy`,
`stateModel`,
`prtPrice`,
`prtSize`,
`prtProb`,
`prtSide`,
`bidPrice`,
`askPrice`,
`bidSize`,
`askSize`,
`avgBLink1m`,
`maeBLink1m`,
`avgSLink1m`,
`maeSLink1m`,
`avgBLink10m`,
`maeBLink10m`,
`avgSLink10m`,
`maeSLink10m`,
`bCounter`,
`sCounter`,
`prtTimestamp`,
`netTimestamp`,
`smsTimestamp`
FROM `SRAnalytics`.`MsgFuturePrintProbability`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`fkey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`fkey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`fkey_tk` = 'Example_fkey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`fkey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_dy` = 1
AND
/* Replace with a ENUM('None','M1','M2','M3','M4') */
`stateModel` = 'None';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='FuturePrintProbability' ORDER BY ordinal_position ASC;